<template>
  <div class="searchHead">
    <div class="search_box">
      <span class="iconfont">&#xe624;</span>
      <input type="text" placeholder="请输入要搜索的内容">
    </div>
    <button @click="searchHandler">搜索</button>
  </div>
</template>
<script>
export default {
  name: "SearchHead",
  data() {
    return {

    }
  },
  methods: {
    searchHandler(){
      this.$router.push({path:"/searchContent"})
    }
  }
}
</script>
<style lang="less" scoped>
  .searchHead{
    width: 100%;
    height: 80px;
    background-color: #ff406f;
    padding: 10px;
    box-sizing: border-box;
    font-size: 16px;
    .search_box{
      margin-top: 25px;
      width: 74.6%;
      display: inline-block;
      position: relative;
      span{
        position: absolute;
        top: 2px;
        left: 5px;
        font-size: 25px;
        font-weight: 500;
        color: #ff406f;
      }
      input{
        padding: 5px;
        padding-left: 35px;
        width: 100%;
        height: 30px;
        border: none;
        border-radius: 2px;
        box-sizing: border-box;
        background-color: #fff;
      }
      input::-webkit-input-placeholder{
        color: #ff406f;
        font-size: 12px;
      }
    }
    button{
      margin-top: 25px;
      font-size: 12px;
      padding: 0 20px;
      color: #ff406f;
      height: 30px;
      // line-height: 20px;
      margin-left: 20px;
      margin-top: 10px;
      background-color: #fff;
      border: none;
      border-radius: 6px;
      outline: none;
    }
  }
</style>

